home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / SOURCE.BIN / DaySpinner.java < prev    next >
Encoding:
Java Source  |  1997-06-19  |  964 b   |  42 lines

  1. package symantec.itools.awt.util.spinner;
  2.  
  3.  
  4. import symantec.itools.awt.ListSpinner;
  5.  
  6.  
  7. /**
  8.  * Day of the week spin control.<br>
  9.  * Creates a text box, containing a list of the days of the week,
  10.  * with up and down arrows. Allows your user
  11.  * to move through a set of fixed values or type a valid value in the box.
  12.  *
  13.  * @see symantec.itools.awt.ListSpinner
  14.  *
  15.  * @version 1.0, Nov 26, 1996
  16.  *
  17.  * @author    Symantec
  18.  *
  19.  */
  20.  
  21.  
  22. public class DaySpinner
  23.     extends ListSpinner
  24. {
  25.     /**
  26.      * Construct DaySpinner component.  This component includes
  27.      * the weekdays in the order Sunday through Saturday.  By default,
  28.      * the inial display of this component is the item "Sunday".
  29.      */
  30.  
  31.     public DaySpinner()
  32.     {
  33.         addItem("Sunday");
  34.         addItem("Monday");
  35.         addItem("Tuesday");
  36.         addItem("Wednesday");
  37.         addItem("Thursday");
  38.         addItem("Friday");
  39.         addItem("Saturday");
  40.     }
  41. }
  42.